import request from '@/utils/request'

/**
 * 字典
 */
export function getDictByCode(dictCode) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysDictionary/getDictByCode',
    method: 'POST',
    data: { dictCode }
  })
}

export function queryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/welfareStatistical/queryPageEveryActivity',
    method: 'post',
    data
  })
}

export function queryPage4fy(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/giveInfoDetail/activityTrade',
    method: 'post',
    data
  })
}

export function getTopInfo(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/welfareStatistical/welfareResultStatisticalEvery',
    method: 'post',
    data
  })
}

/**
 * 导出统计---脱敏
 */
export function exportTradeMask(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: 'backend/giveInfoDetail/activityTradeExportMask',
    method: 'post',
    responseType: 'blob',
    data
  })
}
/**
 * 导出统计---不脱敏
 */
export function exportTradeNoMask(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: 'backend/giveInfoDetail/activityTradeExportNoMask',
    method: 'post',
    responseType: 'blob',
    data
  })
}
/**
 * 导出统计---脱敏
 */
export function exportUserMask(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: 'backend/welfareStatistical/everyActivityUserInfoExportMask',
    method: 'post',
    responseType: 'blob',
    data
  })
}
/**
 * 导出统计---脱敏
 */
export function exportUserNoMask(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: 'backend/welfareStatistical/everyActivityUserInfoExportNoMask',
    method: 'post',
    responseType: 'blob',
    data
  })
}
/* 退款记录列表*/
export function refundList(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/refundmentRecord/queryPage',
    method: 'post',
    data
  })
}
/* 获取入金账户
*/
export function getAcc(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/account/queryPage',
    method: 'post',
    data
  })
}
/* 退款
*/
export function refund(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/refundmentRecord/insertRefundmentRecord',
    method: 'post',
    data
  })
}
/* 退款详情列表*/
export function infoList(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/refundmentRecord/queryPageDetil',
    method: 'post',
    data
  })
}
/* 退款详情导出----脱敏 */
export function infoExportMask(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/refundmentRecord/exportRefundmentDetilMask',
    method: 'post',
    responseType: 'blob',
    data
  })
}
/* 退款详情导出----不脱敏 */
export function infoExportNoMask(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/refundmentRecord/exportRefundmentDetilNoMask',
    method: 'post',
    responseType: 'blob',
    data
  })
}

